package StuScore;

import java.util.Collections;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class StudentTest {
    static List<Student> list = new ArrayList<Student>();

    public static void StudentList() {
        Student stu1 = new Student("210301", "张三", "男", 21, 67);
        Student stu2 = new Student("210305", "李四", "女", 22, 80);
        Student stu3 = new Student("210306", "王五", "女", 21, 82);
        Student stu4 = new Student("210307", "赵六", "女", 18, 99);
        Student stu5 = new Student("210308", "姜七", "男", 56, 20);
        Collections.addAll(list, stu1, stu2, stu3, stu4, stu5);
    }

    public static void main(String[] args) {
        StudentList();
        System.out.println(list);
        System.out.println("Java的平均分是:" + " " + Test.getAvg(list));
        System.out.println("Java的最高分是:" + " " + Test.getMax(list));
        System.out.println("Java的最低分是:" + " " + Test.getMin(list));
    }
}


